package com.flank.weather.logic.network

import com.flank.weather.App
import com.flank.weather.logic.model.DailyResponse
import com.flank.weather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * Created by 2021/9/1
 * Email 270554501@qq.com
 * Author Flank
 * 天气
 */
interface WeatherService {
    @GET("v2.5/${App.TOKEN}/{lng},{lat}/realtime.json")
    fun getRealtimeWeather(@Path("lng") lng:String,@Path("lat") lat:String):Call<RealtimeResponse>
    @GET("v2.5/${App.TOKEN}/{lng},{lat}/daily.json")
    fun getDailyWeather(@Path("lng") lng:String,@Path("lat") lat:String):Call<DailyResponse>
}